
/**
 * textcipher.h
 * 
 * TextCipher is a AES based text cipher
 * 
 * Copyright (c) 2008 Harunobu Oyama <nobukichi at gmail.com>
 * Licensed under GNU GPL version 3
 *
 */

#ifndef		TEXTCIPHER_INCLUDED
#define		TEXTCIPHER_INCLUDED

#include <QString>

class TextCipher {
public:

	//! in: plain text
	//! out: Base64 representation of cryptic binary stream
	static QString encode(const QString& plain, const QString& key);

	//! in: Base64 representation of cryptic binary stream
	//! out: plain text
	static QString decode(const QString& code, const QString& key);

private:
	//! this is a mono-state class
	TextCipher();
};

#endif	//	TEXTCIPHER_INCLUDED

